package day2;

/**
 * @author oldliu
 * @since 1.0
 */
public class Calculator {
    public int add(int a,int b){
        a+=2;
        b+=2;
        System.out.println("a="+a+",b="+b);
        return a+b;
    }
    public int sum(Student stu){
        if(stu.chinese<70)
            stu.chinese+=20;
        System.out.println("*****************");
        stu.show();
        System.out.println("*****************");
        int c= stu.chinese+stu.english+stu.math;
        return c;
    }
}
